package com.jintu.portal.pojo.mq;

import com.alibaba.fastjson.JSONObject;
import lombok.Data;

import java.io.Serializable;

/**
 * @author very
 */
@Data
public class NotificationEntity implements Serializable {
    private static final long serialVersionUID = -3535883326286772121L;
    private String dataSourceCode;
    private String username;
    private Integer userId;
    private String orderId;
    private JSONObject ext;

    private NotificationEntity(){}

    public static NotificationEntity build(Integer userId, String username, String orderId, String dataSourceCode){
        NotificationEntity data = new NotificationEntity();
        data.setUsername(username);
        data.setOrderId(orderId);
        data.setDataSourceCode(dataSourceCode);
        data.setUserId(userId);
        return data;
    }
}
